import './assets/main.scss'

import { createApp } from 'vue'
import App from './App.vue'

// 导入 element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/dist/locale/zh-cn.js'

// 导入路由
import router from './router/index'

// 导入 pinia
import {createPinia} from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'

const pinia = createPinia()
const persist = createPersistedState()
pinia.use(persist)

// 挂载服务
const app = createApp(App)
app.use(ElementPlus, {locale})
app.use(router)
app.use(pinia)
app.mount('#app')
